import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from "element-ui"
//公共方法类
import Server from "@server/index.js"
import 'element-ui/lib/theme-chalk/index.css'
import "./assets/font/font.css";
import './utils/flexible'

Vue.use(ElementUI)
import Print from 'vue-print-nb'
Vue.use(Print)
Vue.config.productionTip = false

// 自定义指令
import * as directives from './utils/directives'
// 将导出的每个自定义指令方法挂载
Object.keys(directives).forEach(d =>{
    return Vue.directive(d, directives[d])
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
